package com.lattice.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @author mis_wu
 * @date 2022/6/18 15:59
 * @todo 统一返回结果枚举类
 */
@AllArgsConstructor
@NoArgsConstructor
public enum ResultEnum {

    RESULT_SUCCESS("0000","接口返回成功"),
    RESULT_ERROR("300","接口返回错误"),
    SYS_BUSY_AFTER_TRY("500","系统繁忙,请稍后再试");

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
